package com.ship.dispatch.service;

import com.ship.dispatch.bean.SpYearPlanCapacityRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ship.dispatch.bean.SpYearPlanSchemeDetail;
import com.ship.dispatch.bean.SpYearlyPlan;

import java.math.BigDecimal;
import java.util.List;

/**
* @author zhangyh
* @description 针对表【sp_year_plan_capacity_record(资源方年度装载记录表)】的数据库操作Service
* @createDate 2024-01-05 15:44:35
*/
public interface SpYearPlanCapacityRecordService extends IService<SpYearPlanCapacityRecord> {
    /**
     * 更新资源方年度货量装载信息
     * @param seller
     * @param planId
     * @param lastYearPlan
     * @param loadCapacity
     */
    void saveSellerCapacityRecord(String seller, Long planId, SpYearlyPlan lastYearPlan, BigDecimal loadCapacity);

    /**
     * 更新年度计划资源方装载货量信息
     * @param details
     */
    void updateCapacityRecord(List<SpYearPlanSchemeDetail> details);
}
